// 自动生成模板Course
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type Course struct {
      global.GVA_MODEL
      CourseId  string `json:"courseId" form:"courseId" gorm:"column:course_id;comment:"`
      CourseName  string `json:"courseName" form:"courseName" gorm:"column:course_name;comment:"`
      CourseMajor  string `json:"courseMajor" form:"courseMajor" gorm:"column:course_major;comment:"`
      CourseClass  string `json:"courseClass" form:"courseClass" gorm:"column:course_class;comment:"`
      Time1  string `json:"time1" form:"time1" gorm:"column:time1;comment:"`
      Time2  string `json:"time2" form:"time2" gorm:"column:time2;comment:"`
      Teacherid  int `json:"teacherid" form:"teacherid" gorm:"column:teacherid;comment:"`
      Teachername  string `json:"teachername" form:"teachername" gorm:"column:teachername;comment:"`
      Appointedtime  string `json:"appointedtime" form:"appointedtime" gorm:"column:appointedtime;comment:"`
      Grade  string `json:"grade" form:"grade" gorm:"column:grade;comment:"`
}


func (Course) TableName() string {
  return "course"
}


// 如果使用工作流功能 需要打开下方注释 并到initialize的workflow中进行注册 且必须指定TableName
// type CourseWorkflow struct {
// 	// 工作流操作结构体
// 	WorkflowBase      `json:"wf"`
// 	Course   `json:"business"`
// }

// func (Course) TableName() string {
// 	return "course"
// }

// 工作流注册代码

// initWorkflowModel内部注册
// model.WorkflowBusinessStruct["course"] = func() model.GVA_Workflow {
//   return new(model.CourseWorkflow)
// }

// initWorkflowTable内部注册
// model.WorkflowBusinessTable["course"] = func() interface{} {
// 	return new(model.Course)
// }
